<center>

<h2>{$lang.glossary}</h2>
<br/>
<h3>
	{foreach from=$alfa item=letter}
		<span class="link" onclick="jumpTo('{$letter}')">{if $letter eq "ALL"}{$lang.all}{else}{$letter}{/if}</span>&nbsp;
	{/foreach}
</h3>
<br/>
<table>
	<tr>
		<td  class="filterbox">
			<input type="text" class="txt" id="searchfor" name="searchfor" onkeypress="if (isEnterKey(event)) searchGlossary();"/>&nbsp;
			{include file="button.tpl" name=$lang.search action="searchGlossary()"}&nbsp;
			{eval var=$CURRENT_USER->groupid assign="crgrp"}
		</td>
		{if $CURRENT_USER->groupid eq 'ADMIN'}
		<td  class="filterbox">
			<select name="teamid" id="teamid" class="txt">
				{foreach from=$teamlist item=team}
					<option value="{$team->id}">{$team->name}</option>
				{/foreach}
			</select>
		</td>
		{/if}
		{if $CURRENT_USER->cando($CREDENTIALS[$crgrp],'glossaryadd') eq true }
		<td>
			{include file="button.tpl" name=$lang.new action="glossaryAdd()"}
		</td>
		{/if}
	</tr>
</table>

<br/>
<div id="glossary_content">
</div>
</center>